<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>closure_selector</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Chapter 1. Geometry">
<link rel="up" href="../enumerations.html" title="Enumerations">
<link rel="prev" href="buffer_side_selector.html" title="buffer_side_selector">
<link rel="next" href="join_selector.html" title="join_selector">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="buffer_side_selector.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../enumerations.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join_selector.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="geometry.reference.enumerations.closure_selector"></a><a class="link" href="closure_selector.html" title="closure_selector">closure_selector</a>
</h4></div></div></div>
<p>
          <a class="indexterm" name="idm72192"></a>
<a class="indexterm" name="idm72194"></a>
<a class="indexterm" name="idm72196"></a>
<a class="indexterm" name="idm72198"></a>
Enumerates options for defining if polygons are open or closed.
        </p>
<h6>
<a name="geometry.reference.enumerations.closure_selector.h0"></a>
          <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.description"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.description">Description</a>
        </h6>
<p>
          The enumeration closure_selector describes options for if a polygon is
          open or closed. In a closed polygon the very first point (per ring) should
          be equal to the very last point. The specific closing property of a polygon
          type is defined by the closure metafunction. The closure metafunction defines
          a value, which is one of the values enumerated in the closure_selector
        </p>
<h6>
<a name="geometry.reference.enumerations.closure_selector.h1"></a>
          <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.synopsis"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.synopsis">Synopsis</a>
        </h6>
<p>
</p>
<pre class="programlisting"><span class="keyword">enum</span> <span class="identifier">closure_selector</span> <span class="special">{</span><span class="identifier">open</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">closed</span> <span class="special">=</span> <span class="number">1</span><span class="special">,</span> <span class="identifier">closure_undertermined</span> <span class="special">=</span> <span class="special">-</span><span class="number">1</span><span class="special">};</span></pre>
<p>
        </p>
<h6>
<a name="geometry.reference.enumerations.closure_selector.h2"></a>
          <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.values"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.values">Values</a>
        </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>
                  <p>
                    Value
                  </p>
                </th>
<th>
                  <p>
                    Description
                  </p>
                </th>
</tr></thead>
<tbody>
<tr>
<td>
                  <p>
                    open
                  </p>
                </td>
<td>
                  <p>
                    Rings are open: first point and last point are different, algorithms
                    close them explicitly on the fly
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    closed
                  </p>
                </td>
<td>
                  <p>
                    Rings are closed: first point and last point must be the same.
                  </p>
                </td>
</tr>
<tr>
<td>
                  <p>
                    closure_undertermined
                  </p>
                </td>
<td>
                  <p>
                    (Not yet implemented): algorithms first figure out if ring must
                    be closed on the fly
                  </p>
                </td>
</tr>
</tbody>
</table></div>
<h6>
<a name="geometry.reference.enumerations.closure_selector.h3"></a>
          <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.header"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.header">Header</a>
        </h6>
<p>
          Either
        </p>
<p>
          <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
        </p>
<p>
          Or
        </p>
<p>
          <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">core</span><span class="special">/</span><span class="identifier">closure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span></code>
        </p>
<h6>
<a name="geometry.reference.enumerations.closure_selector.h4"></a>
          <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.see_also"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.see_also">See
          also</a>
        </h6>
<p>
          <a class="link" href="../core/closure.html" title="closure">The closure metafunction</a>
        </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2009-2021 Barend Gehrels,
      Bruno Lalande, Mateusz Loskot, Adam Wulkiewicz, Oracle and/or its affiliates<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="buffer_side_selector.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../enumerations.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join_selector.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
